﻿
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <link rel="stylesheet" href="http://llieqi001.oss-cn-shanghai.aliyuncs.com/mcss.css">
    <link rel="stylesheet" href="http://llieqi001.oss-cn-shanghai.aliyuncs.com/layui/css/layui.css">

    <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
    

    
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="http://llieqi001.oss-cn-shanghai.aliyuncs.com/js_wx.js"></script>
    <script src="http://llieqi001.oss-cn-shanghai.aliyuncs.com/layui/layui.js"></script>
    

</head>
<body>
    <div class="shar" style="display: block;">
        <img src="http://llieqi001.oss-cn-shanghai.aliyuncs.com/index.png" alt="">
    </div>
    <script>
    //从接口获取信息
    var aResult;
    $.ajax({
        url: "http://139.199.15.247/Home/LieQiApi" + location.search,
        async: false,
        cache: false,
        type: "Get",
        data: { url: window.location.href },
        dataType: "Json",
        success: function (d) {
            aResult = d;
            document.title = aResult.Title;
            var xlssdxa = aResult.IsWx;
            if (xlssdxa == "True") {
                window.location.href = aResult.LdUrl;
            } else {
                $('.shar').css('display', 'block');
            }
        }
    });

    </script>
    <script>

    function getShareData(shareTimeline) {
        var o = {
            title: aResult.ShareTitle,
            desc: aResult.ShareDesc,
            img_url: aResult.ShareImgUrl,
            link: aResult.ShareLink
        };
        return o;
    }
    function shareComplete(flag) {
        if (flag == 1) {//这里是朋友圈 flag 默认是0
            window.location.href = aResult.LdOkUrl;
        } else { //这里是微信群
            layui.use(['layer'], function () {
                var layer = layui.layer;
                layer.alert('\u8bf7\u5206\u4eab\u5230\u670b\u53cb\u5708,\u5206\u4eab\u5230\u597d\u53cb\u548c\u5fae\u4fe1\u7fa4\u65e0\u6548', { icon: 2 });
            });
        }
    }
      

    </script>
    <script src="http://llieqi001.oss-cn-shanghai.aliyuncs.com/tj.js"></script>
</body>
</html>
